package com.haruhi.bot.endpoint.ws.client;

import javax.websocket.CloseReason;
import javax.websocket.EndpointConfig;
import javax.websocket.Session;

public interface WebSocketHandler {

    void onOpen(Session session, EndpointConfig endpointConfig);

    void onError(Session session, Throwable throwable);

    void onClose(Session session, CloseReason closeReason);

    void onMessage(Session session,String msg);
}
